// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {


        byte b = 3;
        int i = 128;
        float f = 1234567.1234f;
        double d = 123456788910.123456789;

        //高精度-->低精度(导致精度损失）
        b = (byte)i;
        f = (float)d;

        System.out.println("b="+b);
        System.out.printf("f=%-30.12f",f);
        System.out.println();

        //低精度-->高精度
        byte b2=1;
        double f2 = 1234567.1234f;
        i = b2;
        d = f2;

        System.out.println("i="+i);
        System.out.printf("d=%-30.6f",d);

    }
}